package com.flea.hclv.service;

import com.flea.hclv.model.entity.HCar;
import com.flea.hclv.model.entity.HResourceRelation;
import com.flea.hclv.util.ServerResponse;
import com.flea.system.bean.FleaPage;
import com.flea.system.entity.OrgDept;

import java.util.List;

public interface HCarService {

    ServerResponse<String> saveOrUpdate(String userId, OrgDept dept, HCar hCar, List<HResourceRelation> hResourceRelations);

    ServerResponse<FleaPage<HCar>> selectAll(OrgDept currentUserDept, int curPage, int pageSize, String name, String type);

    ServerResponse<String> deleteByIds(String userId, List<String> idList);

    ServerResponse<List<HResourceRelation>> selectImageById(String carId);

    ServerResponse<FleaPage<HCar>> selectByDeptId(OrgDept currentUserDept, int curPage, int pageSize, String name, String type);
}
